<?php
/**
 * Created by PhpStorm.
 * User: DELL-PC
 * Date: 2018/8/17
 * Time: 15:10
 */

namespace J\Schema\Collection\Element;


class MultiSelectElement extends Element
{
    public function display($value)
    {
        return bit2array($value);
    }

    public function getInputValue($default = null)
    {
        $v = parent::getInputValue($default);
        return array2bit($v);
    }

    public function getFieldType()
    {
        return 'checkbox';
    }
}